package com.hehui.module.ossSTS.controller;

import com.hehui.common.core.commom.AjaxResult;
import com.hehui.common.core.controller.BaseController;
import com.hehui.module.ossSTS.service.IOssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ossSTS")
/* oss控制器 STS
 * @return: null
 * @param null:
 * @author: why
 * @date: 2021/1/9 10:29
 * @description:
 */
public class OssController extends BaseController {

    @Autowired
    private IOssService ossService;
    //获取STS 授权
    @GetMapping("/getsts")
    public AjaxResult getOssSts() {
        return AjaxResult.success(ossService.getSTS(1000L));
    }

}
